// @material-ui/icons
import Dashboard from "@material-ui/icons/Dashboard";
import Person from "@material-ui/icons/Person";
import LibraryBooks from "@material-ui/icons/LibraryBooks";
import BubbleChart from "@material-ui/icons/BubbleChart";
import Notifications from "@material-ui/icons/Notifications";
import Unarchive from "@material-ui/icons/Unarchive";
import Subject from '@material-ui/icons/Subject';
import Transform from '@material-ui/icons/Transform';
import List from '@material-ui/icons/List';

// core components/views
import DashboardPage from '../doc/views/Dashboard/Dashboard';
import Route from '../doc/views/Route/Route';
import State from '../doc/views/State/State';
import Menu from '../doc/views/Menu/Menu';
import Transformer from '../doc/views/Transformer/Transformer';
import GridTable from '../doc/views/GridTable/GridTable';
import Layout from '../doc/views/Layout/Layout';
import Icons from '../doc/views/Icons/Icons';
import Modal from '../doc/views/Modal/Modal';
import Form from '../doc/views/Form/Form';

const dashboardRoutes = [
  {
    path: "/doc/dashboard",
    sidebarName: "开发指南",
    navbarName: "开发指南",
    icon: Dashboard,
    component: DashboardPage
  },
  {
    path: "/doc/route",
    sidebarName: '路由',
    navbarName: '登录相关及路由',
    icon: Person,
    component: Route
  },
  {
    path: "/doc/state",
    sidebarName: '数据状态管理',
    navbarName: '数据状态与业务逻辑',
    icon: Unarchive,
    component: State
  },
  {
    path: "/doc/slidermenu",
    sidebarName: "左侧菜单",
    navbarName: "左侧菜单",
    icon: List,
    component: Menu
  },
  {
    path: "/doc/gridtable",
    sidebarName: "数据表格",
    navbarName: "数据表格",
    icon: "content_paste",
    component: GridTable
  },
  {
    path: "/doc/layout",
    sidebarName: "框架布局",
    navbarName: "框架布局",
    icon: LibraryBooks,
    component: Layout
  },
  {
    path: "/doc/icons",
    sidebarName: "图标",
    navbarName: "图标",
    icon: BubbleChart,
    component: Icons
  },
  {
    path: "/doc/modal",
    sidebarName: "模态窗口",
    navbarName: "模态窗口",
    icon: Notifications,
    component: Modal
  },
  {
    path: "/doc/form",
    sidebarName: "表单元素",
    navbarName: "表单元素",
    icon: Subject,
    component: Form
  },
  {
    path: "/doc/transformer",
    sidebarName: "穿梭框",
    navbarName: "穿梭框",
    icon: Transform,
    component: Transformer
  },
  { redirect: true, path: '/doc', to: '/doc/dashboard', navbarName: "Redirect" }
];

export default dashboardRoutes;
